import {Column, Entity} from 'typeorm';
import {BaseEntity} from "@/entitys/common/baseEntity";


class Itinerary {
    @Column({comment: '行程日期', type: 'date', nullable: true})
    startDate: Date;

    @Column({comment: '交通'})
    traffic: string;

    @Column({comment: '行程内容'})
    itineraryContent: string;

    @Column({comment: '酒店'})
    hotelName: string;

    @Column({comment: '早餐'})
    breakfast: string;

    @Column({comment: '午餐'})
    lunch: string;

    @Column({comment: '晚餐'})
    dinner: string;
}


@Entity({comment: "行程线路模板"})
export class ItineraryTemplate extends BaseEntity{

    @Column({comment: '线路名称'})
    itineraryName: string;

    @Column({comment: '行程天数'})
    itineraryDays: number;

    @Column({comment: '自费信息'})
    selfInfo: string;

    @Column({comment: '产品特色'})
    feature: string;

    @Column({comment: '注意事项'})
    precautions: string;

    @Column({comment: '线路详情', type: "json"})
    itineraryList: Itinerary[];

}

